<?php

/**
 * @access public
 * @author Marcos Vinicius Pereira dos Santos, <marcosvps1@hotmail.com>
 * @version 1.0
 * @package Elements
 * @subpackage Charts
 * @since 1.0
 */
class Chart extends Element {
    /**
     * @access public
     * @var Array
     */
    var $chartTitle = array();

    /**
     * @access public
     * @var Array
     */
    var $chartSubtitle = array();

    /**
     * @access public
     * @var Array
     */
    var $chartLegend = array();

    /**
     * @access public
     * @var Array
     */
    var $itemLabel = array();

    /**
     * @access public
     * @var Boolean
     */
    var $isShowLegend = null;

    /**
     * @access public
     * @var String
     */
    var $theme = null;

    /**
     * Construtor da classe.
     * @access public
     */
    public function  __construct() {
        $this->init();
    }

    /**
     * Método responsável por inicializar as propriedades da classe.
     * @access private
     */
    private function init(){
        $this->isShowLegend = true;
        $this->theme = "DEFAULT";

        //Inicializando as configurações do Titulo do gráfico.
        $this->chartTitle['isDraw'] = true;
        $this->chartTitle['position'] = 'TOP';
        $this->chartTitle['color'] = array(0,0,0);
        $this->chartTitle['txt'] = "";
        $this->chartTitle['fontName'] = "";
        $this->chartTitle['size'] = 10;
        $this->chartTitle['isBold'] = false;
        $this->chartTitle['isItalic'] = false;
        $this->chartTitle['isUnderline'] = false;

        //Inicializando as configurações do Sub-Titulo do gráfico.
        $this->chartSubtitle['isDraw'] = true;
        $this->chartSubtitle['position'] = 'TOP';
        $this->chartSubtitle['color'] = array(0,0,0);
        $this->chartSubtitle['txt'] = "";
        $this->chartSubtitle['fontName'] = "";
        $this->chartSubtitle['size'] = 10;
        $this->chartSubtitle['isBold'] = false;
        $this->chartSubtitle['isItalic'] = false;
        $this->chartSubtitle['isUnderline'] = false;
    }
}
?>